package com.xh.jf_blog.mapper;

import com.xh.jf_blog.bean.Comment;

import java.util.List;

public interface CommentMapper {
    int deleteByPrimaryKey(Integer commentId);

    int insert(Comment record);

    int insertSelective(Comment record);

    Comment selectByPrimaryKey(Integer commentId);

    int updateByPrimaryKeySelective(Comment record);

    int updateByPrimaryKey(Comment record);

    List<Comment> getAll(Comment comment);

    List<Comment> getListByArticleId(int articleId);

    List<Comment> getListByAuthorId(int authorId);

    int deleteByArticleId(int articleId);

    int deleteByUserinfoId(int userinfoId);
}
